package com.college.authority.service;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.college.common.pojo.ao.UmsMenu;

import java.util.List;

/**
 * 后台菜单管理Service
 * Created by macro on 2020/2/2.
 */
public interface UmsMenuService extends IService<UmsMenu> {
	/**
	 * 创建后台菜单
	 */
	boolean create(UmsMenu umsMenu);

	/**
	 * 修改后台菜单
	 */
	boolean update(UmsMenu umsMenu);

	/**
	 * 分页查询后台菜单
	 */
	Page<UmsMenu> list(Long parentId, Integer pageSize, Integer pageNum);

	/**
	 * 树形结构返回所有菜单列表
	 */
	List<UmsMenu> treeList();

	Boolean removeMenu(Long mid);


}
